package com.jumi.microservice.material.api;

import com.jumi.microservice.material.domain.JmGoodsTax;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.jumi.microservice.common.base.dto.ResponseResult;
import com.jumi.microservice.material.service.GoodsTaxService;
import com.jumi.microservice.material.service.IGoodTaxService;

import java.util.List;

/**
 * @description: 商品税务APi实现
 * @author: ZhangY
 */
@RequestMapping("/goodsTax")
@RestController
@Service
public class IGoodsTaxServiceImpl implements IGoodTaxService
{
	@Autowired
	private GoodsTaxService goodsTaxService;

	/**
	 * 返回全部列表
	 */
	@GetMapping(value = "/findAll")
	@Override
	public ResponseResult<List<JmGoodsTax>> findAll()
	{
		return ResponseResult.success(goodsTaxService.findAll());
	}

}
